home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui.h < prev   
Encoding:
C/C++ Source or Header  |  1994-04-25  |  18.8 KB  |  694 lines

  1. /**********************************************************************
  2. Information generated by SCCS:
  3.  
  4. IDENTIFICATION    : @(#)ui.h    1.13 4/18/94  
  5. FILE              : ui.h      
  6. DATE OF RETRIEVAL : 4/18/94      
  7. SCCS VERSION      : 1.13      
  8. LAST CHANGE       : 4/18/94      
  9. **********************************************************************/
  10. /*****************************************************************************
  11.   FILE     : ui.h
  12.   SHORTNAME: ui.h
  13.   SNNS VERSION   : 3.2
  14.  
  15.   PURPOSE  : general header file 
  16.   NOTES    : This file is to include in all ui_*.c files.
  17.              There is another "general" include file for use of files
  18.          using X.
  19.  
  20.   AUTHOR   : Tilman Sommer
  21.   VERSION  : 2.1
  22.   DATE     : 18.5.1990
  23.  
  24.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  25.              
  26. ******************************************************************************/
  27.  
  28.  
  29. #ifndef __ui
  30. #define __ui
  31.  
  32. /* X11 */
  33.  
  34. #include <X11/StringDefs.h>
  35. #include <X11/Intrinsic.h>
  36.  
  37.  
  38.  
  39. /* kernel */
  40. #include "glob_typ.h"
  41.  
  42.  
  43. /***************************** boolean ********************************/
  44.  
  45.  
  46. #ifndef FALSE
  47.  
  48. #define FALSE (0==1)
  49. #define TRUE  (0==0)
  50.  
  51. #endif
  52.  
  53. #define NOT !
  54. #define not !
  55. #define OR ||
  56. #define or ||
  57. #define AND &&
  58. #define and &&
  59.  
  60. #define BIT_AND &
  61. #define BIT_OR |
  62. #define BIT_NOT ~
  63. #define BIT_XOR ^
  64.  
  65. /***************************** integer ********************************/
  66.  
  67. #define MOD %
  68. #define mod %
  69. #define DIV /
  70. /* #define div / */ /* not used */
  71.  
  72. /***************************** misc    ********************************/
  73.  
  74. #define MAX_NAME_LENGTH 100
  75.  
  76. #define UI_ASCII_BLANK   32
  77.  
  78. /* used for testing return value of krui_setCurrent...() */
  79. #define UI_SET_OK  0
  80.  
  81.  
  82. /*****************************************************************************/
  83. /*****************************************************************************/
  84. /*****************************************************************************/
  85.  
  86.  
  87. typedef  int FlagType;
  88. typedef  int StateType;
  89.  
  90.  
  91. #ifndef Bool
  92.  
  93. typedef int Bool;
  94.  
  95. #endif
  96.  
  97. /* setup panel */
  98. struct SetupDataType {
  99.     Bool          showValueFlg;
  100.     Bool          showValue;
  101.     Bool          showTitleFlg;
  102.     Bool          showTitle;
  103.     Bool          showLinkFlg;
  104.     Bool          showDirectionFlg;
  105.     Bool          showWeightFlg;
  106.     FlintType     linkPosTrigger, linkNegTrigger;
  107.     FlintType     unitScaleFactor;
  108.     FlintType     linkScaleFactor;
  109.     char          siteName[80];
  110.     int           backgroundColorIndex;
  111.     int           selectionColorIndex;
  112.     int           textColorIndex;
  113. };
  114.  
  115. /* selection list item */
  116. struct SelectionType {
  117.     struct SelectionType     *nextPtr;
  118.     struct PosType           gridPos;  /* grid position of unit */
  119.     int                      subNetNo;
  120.     int                      unitNo;   /* and unit no.          */
  121.     int                      copyNo;   /* no of new created copy */
  122.                                        /* Used during structure copy */
  123.     int                      flags;
  124.       /* bit  0 - selected
  125.        bit  1 - reserved. not used. last operation failed for 
  126.                 this unit. 
  127.            bit  3 - UI_ALREADY_MOVED
  128.        bit  4 - UI_ALREADY_REVERSED
  129.        The last two bits are used to remember whether this unit was
  130.        already touched by a move or reverse operation. */
  131. }; 
  132.  
  133.  
  134. /* unit (info panel) */
  135. struct UnitAttributeType {
  136.     int             no;
  137.     int             subnetNo;
  138.     Bool            frozen;
  139.     struct PosType  gridPos;
  140.     unsigned short  layers;
  141.     char            name[MAX_NAME_LENGTH];
  142.     char            ftype[MAX_NAME_LENGTH];
  143.     char            actFuncName[MAX_NAME_LENGTH];
  144.     char            outFuncName[MAX_NAME_LENGTH];
  145.     int             iotype;
  146.     FlintType       act;
  147.     FlintType       i_act;
  148.     FlintType       out;
  149.     FlintType       bias;
  150. };
  151.  
  152.  
  153. /* link (info panel) */
  154. struct LinkAttributeType {
  155.     FlintType       weight;
  156.     FlintType       siteValue;
  157.     char            siteName[MAX_NAME_LENGTH];
  158.     char            siteFuncName[MAX_NAME_LENGTH];
  159. };
  160.  
  161.  
  162.  
  163.  
  164.  
  165. /*****************************************************************************/
  166. /*****************************************************************************/
  167. /*****************************************************************************/
  168.  
  169. /* ui_mainP.c */
  170.  
  171. #define UI_POPUP_DUMMY   1
  172. #define UI_POPUP_SETUP   2
  173. #define UI_POPUP_FILE    3
  174. #define UI_POPUP_CANVAS  4
  175. #define UI_POPUP_HELP    5
  176. #define UI_POPUP_LIST    6
  177. #define UI_POPUP_LAYER   7
  178. #define UI_POPUP_EDIT    8
  179. #define UI_POPUP_REMOTE  9
  180. #define UI_POPUP_WEIGHTS_DONE   10
  181. #define UI_POPUP_WEIGHTS_CANCEL 11
  182. #define UI_POPUP_RESULT  12
  183. #define UI_POPUP_SUBPATTERN  13
  184.  
  185. #define SEARCH_WORD_MAXLEN 40
  186.  
  187. #define UI_RANDOM 1
  188. #define UI_JOG    2
  189.  
  190. /* mainProcs */
  191.  
  192.  
  193. struct HelpType {
  194.     Widget          shellWidget;
  195.     Widget          textWidget;
  196.     int             no;
  197.     Bool            unmapped;
  198.     struct HelpType *nextPtr;
  199. }; 
  200.  
  201.  
  202. /* lists */
  203.  
  204. struct SimpleListType {
  205.     Widget  widgetPtr;     /* in the center of this widget the window will occur */
  206.     Widget  listWidget;    /* contains the actual list */
  207.     String  *listPtr;      /* pointer to a array of strings */
  208.     int     noOfAllocItems;/* size of this array */
  209.     int     noOfItems;     /* used items in this array */
  210.     char    msg[100];      /* title */
  211.     struct UnitAttributeType *unitPtr;
  212.     int     listType;
  213. };
  214.  
  215. /* 1 to 6 are not used in the final release ! The corresponding values
  216. are taken from the kernel file glob_typ.h. The other constants are
  217. starting with a value of 20 to be open for further extesions of the
  218. kernel. */
  219.  
  220. #define UI_LIST_OUT_FUNC    1 
  221. #define UI_LIST_ACT_FUNC    2 
  222. #define UI_LIST_SITE_FUNC   3 
  223. #define UI_LIST_LEARN_FUNC  4 
  224. #define UI_LIST_UPDATE_FUNC 5 
  225. #define UI_LIST_INIT_FUNC   6 
  226.  
  227. #define UI_LIST_IOTYPE         20 
  228. #define UI_LIST_SITE           21
  229. #define UI_LIST_FTYPE_SITE     22 
  230. #define UI_LIST_UNIT_SITE      23 
  231. #define UI_LIST_FTYPE_OUT_FUNC 24 
  232. #define UI_LIST_FTYPE_ACT_FUNC 25 
  233. #define UI_LIST_FTYPE_NAME     26 
  234. #define UI_LIST_FTYPE          27
  235.  
  236.  
  237.  
  238. /* layers */
  239.  
  240.  
  241. #define MAX_NO_LAYERS 8
  242.  
  243.  
  244. /* colors */
  245.  
  246. #define UI_COL_BLACK  0
  247. #define UI_COL_RED    1
  248. #define UI_COL_GREEN  2
  249. #define UI_COL_YELLOW 3
  250. #define UI_COL_BLUE   4
  251. #define UI_COL_WHITE  7
  252. #define UI_COL_BROWN  8
  253. #define UI_COL_SEA    9
  254.  
  255. #define UI_COL_DARK   0
  256. #define UI_COL_NORM   1
  257. #define UI_COL_BRIGHT 2
  258.  
  259.  
  260. #define UI_BLACK  56
  261. #define UI_RED    57
  262. #define UI_GREEN  58
  263. #define UI_BLUE   59
  264. #define UI_WHITE  63
  265. #define UI_BROWN  36
  266. #define UI_YELLOW 60
  267. #define UI_CYAN   62
  268. #define UI_SEA    21
  269.  
  270.  
  271. #define UI_PALETTE_MONO                               0
  272. #define UI_PALETTE_MONO_INVERSE                       1
  273.  
  274. #define ui_textColor        ui_editColor[displayPtr->setup.textColorIndex]
  275. #define ui_selectionColor   ui_editColor[displayPtr->setup.selectionColorIndex]
  276. #define ui_backgroundColor  ui_editColor[displayPtr->setup.backgroundColorIndex]
  277.  
  278. #define UI_MAXCOLORSTEPS 15
  279.  
  280. #define UI_MAX_EDIT_COLS 64
  281. #define UI_VERT_COLS 8
  282. #define UI_HORIZ_COLS 8
  283.  
  284. #define UI_SELECT_TEXT_COLOR   0
  285. #define UI_SELECT_BACK_COLOR   1
  286. #define UI_SELECT_SEL_COLOR    2
  287.  
  288.  
  289. /* displays */
  290.  
  291.  
  292. #define UI_LOCAL   1
  293. #define UI_GLOBAL  2
  294.  
  295.  
  296. #define  UI_CLOSED      0
  297. #define  UI_OPEN        1
  298.  
  299. #define  UI_ALWAYS_FULL 1
  300. #define  UI_INTELLIGENT 2
  301.  
  302.  
  303. struct Ui_DisplayType {
  304.     Widget                widget;          /* drawable widget */
  305.     Window                drawable;        /* drawable window*/
  306.     Widget                frameWidget;     /* widget containing the
  307.                           setup button */
  308.     int                   displayNo;       /* unique number */
  309.     Position              x,y;             /* Window coordinates */
  310.     Dimension             width, height;   /* Window dimensions */
  311.     struct PosType        origin;          /* upper left corner */
  312.     int                   gridSize;        /* in pixel */
  313.     int                   unitsInX;
  314.     int                   unitsInY;
  315.     Bool                  frozen;          /* no update in this display */
  316.     Bool                  raster;          /* draw points on positions - not used*/
  317.     Bool                  refreshNeeded;   /* a refresh is needed 
  318.                           Used after command: Graphic Direction.
  319.                           move and copy actions need now a full
  320.                           refresh */
  321.     int                   subNetNo;        /* visible in this display */
  322.     struct SetupDataType  setup;           /* all setup datas */
  323.     FlagType              flags;          
  324.     unsigned short        layers;          /* visible in this display */
  325.     FlagType              updateType;
  326.                           /* can be:
  327.                     UI_ALWAYS_FULL  = draw everything
  328.                 UI_INTELLIGENT  = decide what is better
  329.                 */
  330.     struct Ui_DisplayType  *nextPtr;
  331. };
  332.  
  333.  
  334.  
  335.  
  336. /* remote */
  337.  
  338. #define UI_LEARN_SINGLE  1
  339. #define UI_LEARN_ALL     2
  340.  
  341. #define UI_NO_LEARN_PARAMS  5
  342. #define UI_NO_UPDATE_PARAMS 5
  343. #define UI_NO_INIT_PARAMS   5
  344. #define UI_NO_OF_CASCADE_PARAMS 15
  345.  
  346. #define UI_STEPS         1
  347. #define UI_LEARN         2
  348.  
  349. #define UI_FIRST         1
  350. #define UI_PREVIOUS      2
  351. #define UI_NEXT          3
  352. #define UI_LAST          4
  353. #define UI_JUMP          5
  354.  
  355. /* file */
  356.  
  357.  
  358. #define UI_FILE_TXT     4
  359. #define UI_FILE_PAT     2
  360. #define UI_FILE_NET     1
  361. #define UI_FILE_CFG     3
  362. #define UI_FILE_RES     5
  363.  
  364.  
  365. /* setup */
  366.  
  367. #define UI_ACTIVATION         1
  368. #define UI_INITIAL_ACTIVATION 2
  369. #define UI_OUTPUT             3
  370. #define UI_BIAS               4
  371. #define UI_NUMBER             5
  372. #define UI_NAME               6
  373. #define UI_ZVALUE             7
  374. #define UI_WINNER             11
  375.  
  376. #define  UI_UNIT_BOTTOM_GENERAL 1
  377. #define  UI_UNIT_TOP_GENERAL    2
  378. #define  UI_LINK_GENERAL        3
  379. #define  UI_LINK_VALUE          4
  380. #define  UI_LINK_DIRECTION      5
  381.  
  382. /* Triggers */
  383. #define  UI_LINKS_POS        3
  384. #define  UI_LINKS_NEG        4
  385. #define  UI_SCALE_FACTOR     5
  386. #define  UI_SCALE_LINKS      6
  387.  
  388.  
  389.  
  390.  
  391. /* info */
  392.  
  393.  
  394. struct UnitWidgetType {
  395.     Widget    no;                       /* label */
  396.     Widget    subnetNo;                 /* label */
  397.     Widget    frozen;                   /* toggle */
  398.     Widget    name;                     /* asciiText */
  399.     Widget    ftype;                    /* label */
  400.     Widget    actFuncName, outFuncName; /* label */
  401.     Widget    iotype;                   /* label */
  402.     Widget    act, i_act, out, bias;    /* asciiText */
  403. };
  404.  
  405. struct LinkWidgetType {
  406.     Widget    weight;                   /* asciiText */
  407.     Widget    siteValue;                /* label */
  408.     Widget    siteName;                 /* label */
  409.     Widget    siteFuncName;             /* label */
  410. };
  411.  
  412.  
  413.  
  414.  
  415. struct InfoCallLayerStruct {
  416.     Widget    widget;
  417.     int       unitType;
  418. };
  419.  
  420. #define UI_SOURCE   0
  421. #define UI_TARGET   1
  422. #define UI_DEFAULT  2
  423.  
  424.  
  425.  
  426.  
  427. /* graphic_ui.c */
  428.  
  429. #define  UI_WHITE_COLOR 0
  430. #define  UI_BLACK_COLOR 1
  431.              /* pixel unset or set */
  432.  
  433. #define  UI_ERASE_BOTTOM  2  /* signal to erase the text at unit bottom */
  434. #define  UI_DRAW          1  /* signal to draw a unit/link  */
  435. #define  UI_ERASE         0  /* signal to erase a unit/link */
  436.  
  437. #define  UI_WEIGHT_OFF      0
  438. #define  UI_WEIGHT_START    1
  439. #define  UI_WEIGHT_END      2
  440. #define  UI_WEIGHT_MIDDLE   3
  441.  
  442. /* size in pixels of icons (big = 64  and small = 16) and cursors = 16 */
  443. #define  UI_ICON_SIZE        64
  444. #define  UI_CURSOR_SIZE      16
  445.  
  446. #define  UI_UNIT_SIZE        16
  447.  
  448.                         /* the graphic view to a unit is max 16x16 pixels */
  449.                         
  450. /****************************************************************************/
  451. /* key_ui.c */
  452.  
  453. #define  UI_INPUT              1   /* bit 1 set       */
  454. #define  UI_OUT                2   /* bit 2 set       */
  455. #define  UI_ALL                3   /* bit 1 and 2 set */
  456. #define  UI_FORWARD_BINDING    4   /* bit 3           */
  457. #define  UI_BACKWARD_BINDING   8   /* bit 4           */
  458. #define  UI_TWOWAY_BINDING    12   /* bit 3 and 4 set */
  459. #define  UI_ENVIRONMENT       32   /* bit 6 set       */
  460. #define  UI_STRUCTURE_COPY    64   /* bit 7 set       */
  461. #define  UI_SAFETY           128   /* bit 8 set       */
  462.  
  463.  
  464.  
  465. /****************************************************************************/
  466. /* selection_ui.c */
  467.  
  468. #define UI_NO_FLAG           0
  469. #define UI_SELECTED          1   /* bit 1 */
  470. #define UI_ALREADY_MOVED     4   /* bit 3 */
  471. #define UI_ALREADY_REVERSED  8   /* bit 4 */
  472.  
  473. /* size of the square around a unit to indicate the selection */
  474. #define UI_SELECTION_SIZE 34
  475. #define UI_OCCUPIED       6
  476.  
  477.  
  478.  
  479.  
  480. /****************************************************************************/
  481. /* ui_pix_deleteRect() */
  482.  
  483. #define UI_ALIGN      1
  484. #define UI_NO_ALIGN   0
  485.  
  486. /****************************************************************************/
  487. /* textwin */
  488.  
  489. #define UI_MAX_TW_BUFFER_SIZE 250
  490.  
  491. /****************************************************************************/
  492. /* help_popup */
  493.  
  494.  
  495. #define    UI_FORWARD        0
  496. #define    UI_BACKWARD       1
  497.  
  498. #define    UI_FROM_BEGINNING 1
  499.  
  500. #define    UI_HELP_MOUSE     0
  501. #define    UI_HELP_KEY       1
  502. #define    UI_HELP_STATUS    2
  503. #define    UI_HELP_FILE      3
  504. #define    UI_HELP_HELP      4
  505. #define    UI_HELP_TEXT      5
  506. #define    UI_HELP_SETUP     6
  507. #define    UI_HELP_INFO      7
  508. #define    UI_HELP_REMOTE    8
  509.  
  510. /****************************************************************************/
  511.  
  512. /* edit */
  513.  
  514. #define  UI_EDIT_SITE              1
  515. #define  UI_EDIT_FTYPE             2
  516.  
  517. #define  UI_EDIT_SITE_FUNC         1
  518. #define  UI_EDIT_ACT_FUNC          2
  519. #define  UI_EDIT_OUT_FUNC          3
  520.  
  521. /* key */
  522.  
  523. #define  UI_SET_NAME          1
  524. #define  UI_SET_IOTYPE        2
  525. #define  UI_SET_FTYPE         3
  526. #define  UI_SET_ACT           4
  527. #define  UI_SET_I_ACT         5
  528. #define  UI_SET_OUT           6
  529. #define  UI_SET_BIAS          7
  530. #define  UI_SET_ACT_FUNC      8
  531. #define  UI_SET_IACT_FUNC     9
  532. #define  UI_SET_OUT_FUNC      10
  533.  
  534. #define  UI_START_STATE                  0
  535. #define  UI_STATE_MODE                   1
  536. #define  UI_STATE_UNITS                  2
  537. #define  UI_STATE_LINKS                  3
  538. #define  UI_STATE_FLAG                   4
  539. #define  UI_STATE_LINKS_MAKE             5   
  540. #define  UI_STATE_UNITS_COPY             6
  541. #define  UI_STATE_LINKS_COPY             7
  542. #define  UI_STATE_LINKS_DELETE           8
  543. #define  UI_STATE_UNITS_SET              9
  544. #define  UI_STATE_UNITS_COPY_STRUCTURE  10
  545. #define  UI_STATE_GRAPHIC               11
  546. #define  UI_STATE_UNITS_SET_FUNCTION    12
  547. #define  UI_STATE_UNITS_INSERT          13
  548. #define  UI_STATE_GETDEST               14
  549. #define  UI_STATE_SITES                 15
  550. #define  UI_STATE_SITES_COPY            16
  551. #define  UI_STATE_UNITS_3D              17
  552.  
  553. /* action */
  554.  
  555.  
  556. #define UI_INSERT_DEFAULT 1
  557. #define UI_INSERT_TARGET  2
  558. #define UI_INSERT_FTYPE   3
  559.  
  560.  
  561. #define UI_ACTION_MOVE    1
  562. #define UI_ACTION_COPY    2
  563.  
  564.  
  565. #define UI_FREEZE    11
  566. #define UI_UNFREEZE  12
  567.  
  568.  
  569. /****************************************************************************/
  570. /* update_whole_net_ui.c */
  571.  
  572. #define UI_DRAW_UNITS         1
  573. #define UI_DRAW_LINKS         2
  574.  
  575.  
  576.  
  577. /****************************************************************************/
  578.  
  579.  
  580.  
  581. /****************************************************************************/
  582. /* ui_print.c */
  583.  
  584.  
  585. #define UI_FORMAT_POSTSCRIPT    0
  586. #define UI_FORMAT_EPSF          1
  587.  
  588. #define UI_DEST_PRINTER         0
  589. #define UI_DEST_FILE            1
  590.  
  591. #define UI_PAPER_DINA4          0
  592. #define UI_PAPER_DINA3          1
  593. #define UI_PAPER_USLETTER       2
  594.  
  595. #define UI_CLIP_ON              0
  596. #define UI_CLIP_OFF             1
  597.  
  598. #define UI_COLOR_ON             0
  599. #define UI_COLOR_OFF            1
  600.  
  601. #define UI_AUTOSCALE_ON         0
  602. #define UI_AUTOSCALE_OFF        1
  603.  
  604. #define UI_AUTOUNI_ON           0
  605. #define UI_AUTOUNI_OFF          1
  606.  
  607. #define UI_ORIENTATION_PORTAIT   0
  608. #define UI_ORIENTATION_LANDSCAPE 1
  609.  
  610. #define UI_UNITSIZE_FIXED       0
  611. #define UI_UNITSIZE_VALUE       1
  612.  
  613. #define UI_SHAPE_RECT           0
  614. #define UI_SHAPE_CIRCLE         1
  615.  
  616. #define UI_TEXT_SOLID           0
  617. #define UI_TEXT_TRANS           1
  618.  
  619. #define UI_BORDER_ON            0
  620. #define UI_BORDER_OFF           1
  621.  
  622.  
  623. typedef struct {
  624.     int dest;                           /*  printer or file                          */
  625.     int format;                         /*  fileformat ps or eps                     */
  626.     int paper;                          /*  paperformat DIN A4 ...                   */
  627.     int autoScale;                      /*  scale to maximum                         */
  628.     int clip;                           /*  clip at border                           */
  629.     int color;                          /*  color postscript                         */
  630.     int orient;                         /*  landscape or portrait                    */
  631.     int autoUni;                        /*  scale uniformly in x and y direction     */
  632.     int size;                           /*  unit has fixed size or size by a value   */
  633.     int shape;                          /*  unit shape is circle or rectangle        */
  634.     int text;                           /*  text is solid or transparent             */
  635.     int border;                         /*  draw border                              */
  636.     int resolution;                     /*  printers resolution in dpi               */
  637.     int displayToPrint;                 /*  number of associated display             */
  638.     float borderHoriz;                  /*  horizontal border in cm                  */
  639.     float borderVert;                   /*  vertical border in cm                    */
  640.     float scaleValX;                    /*  x scale if not autoscale                 */
  641.     float scaleValY;                    /*  y scale if not autoscale                 */
  642.     float unitGray;                     /*  grayvalue (0..1) to fill the units       */
  643.     char fileNameStr[MAX_NAME_LENGTH];  /*  default filename                         */
  644.     char cmdLineStr[MAX_NAME_LENGTH];   /*  default command line                     */
  645. } Ui_printerValType;
  646.  
  647.  
  648. /****************************************************************************/
  649.  
  650.  
  651. /* Macros */
  652.  
  653.  
  654. /* chars */
  655.  
  656. #define ui_isCapLetter(arg)                ((arg >= 'A') && (arg<= 'Z'))
  657. #define ui_isNonCapLetter(arg)             ((arg >= 'a') && (arg<= 'z'))
  658.  
  659.  
  660.  
  661. /* flags */
  662.  
  663. #define ui_utilIsSet(flag_word,flags)    ((flag_word & (flags)) == (flags))
  664. #define ui_utilIsNotSet(flag_word,flags) ((flag_word & (flags)) != (flags))
  665. #define ui_utilSetFlag(flag_word,flag)   (flag_word = flag_word | (flag))
  666. #define ui_utilResetFlag(flag_word,flag) (flag_word = flag_word & (~ (flag)))
  667.  
  668.  
  669. #define ui_utilGetIOTypeName(iotype)    (ui_list_iotypes[iotype])
  670.  
  671. #define ui_isUnitVisibleInDisplay(displayPtr, unitNo) ((krui_getUnitSubnetNo(unitNo) == displayPtr->subNetNo) && (krui_getUnitLayerNo(unitNo) & displayPtr->layers))
  672.  
  673.  
  674. #define ui_utilAreEqualPositions(pos1,pos2)     ((pos1.x == pos2.x) && (pos1.y == pos2.y))
  675. #define ui_utilAreDifferentPositions(pos1,pos2) ((pos1.x != pos2.x) || (pos1.y != pos2.y))
  676.  
  677.  
  678.  
  679. /****************************************************************************/
  680. /****************************************************************************/
  681. /****************************************************************************/
  682. /****************************************************************************/
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689. #endif
  690.  
  691.  
  692. /* end of file */
  693. /* lines: 599 */
  694.